var app3 = new Vue({
    el:"#coordinate",
    data:{
        head_x:1,
        head_y:2,
        head_z:3,
        shoulderleft_x:4,
        shoulderleft_y:5,
        shoulderleft_z:6,
        shoulderright_x:6,
        shoulderright_y:6,
        shoulderright_z:6,
        handleft_x:6,
        handleft_y:6,
        handleft_z:6,
        handright_x:6,
        handright_y:6,
        handright_z:6,
        waist_x:6,
        waist_y:6,
        waist_z:6,
        footleft_x:6,
        footleft_y:6,
        footleft_z:6,
        footright_x:6,
        footright_y:6,
        footright_z:6,

    },
    mounted() {

        this.getJoke1()

    },
    methods:{

        getJoke1:function(){

            var that=this;
            axios.get("http://116.62.241.190:8080/findCoordinate").then
            (function(response){
// console.log(response);
               that.head_x=response.data.head_x;
               that.head_y=response.data.head_y;
               that.head_z=response.data.head_z;
               that.shoulderleft_x=response.data.shoulderleft_x;
               that.shoulderleft_y=response.data.shoulderleft_y;
               that.shoulderleft_z=response.data.shoulderleft_z;
               that.shoulderright_x=response.data.shoulderright_x;
               that.shoulderright_y=response.data.shoulderright_y;
               that.shoulderright_z=response.data.shoulderright_z;
               that.handleft_x=response.data.handleft_x;
               that.handleft_y=response.data.handleft_y;
               that.handleft_z=response.data.handleft_z;
               that.handright_x=response.data.handright_x;
               that.handright_y=response.data.handright_y;
               that.handright_z=response.data.handright_z;
               that.waist_x=response.data.waist_x;
               that.waist_y=response.data.waist_y;
               that.waist_z=response.data.waist_z;
               that.footleft_x=response.data.footleft_x;
               that.footleft_y=response.data.footleft_y;
               that.footleft_z=response.data.footleft_z;
               that.footright_x=response.data.footright_x;
               that.footright_y=response.data.footright_y;
               that.footright_z=response.data.footright_z;

            },function(err){

                alert(err)
            })
        },


    }
})